package com.easysoft.framework.product.mapper;

import com.easysoft.framework.beans.Page;
import com.easysoft.framework.product.model.SysProductCategory;
import com.easysoft.framework.product.model.SysProductCategoryQuery;
import com.easysoft.framework.product.model.SysProductCategoryView;
import com.easysoft.framework.stereotype.MyBatisRepository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisRepository("mapper.SysProductCategoryMapperExtd")
public interface SysProductCategoryMapperExtd extends SysProductCategoryMapper {

    public List<SysProductCategoryView> selectSysProductCategoryByPage(@Param("page") Page page, @Param("query") SysProductCategoryQuery query);

    public int  selectCountAllProductCategory( @Param("query") SysProductCategoryQuery query);

    List<SysProductCategoryView> selectSysProductCategory(@Param("onlyRoot") boolean onlyRoot);
}
